<%= form_remote_tag build_widget_url(:new), :class => "form-signin" do %>
    <div class="form_settings">

      <div class="form-group">
        <label for="first_name">Enter your name</label>
        <%= text_field_tag :first_name, nil, :class => "form-control", :placeholder => "First Name", :required => true %>
      </div>
      <div class="form-group">

        <%= text_field_tag :last_name, nil, :class => "form-control", :placeholder => "Last Name", :required => true %>
      </div>

      <div class="form-group">
        <label for="email">Email</label>
        <%= text_field_tag :email, params[:email], :class => "form-control", :placeholder => "Enter a valid email address", :required => true, :type => 'email' %>
      </div>

      <div class="form-group">
        <label for="email">Create a user name to log on to the system</label>
        <%= text_field_tag :username, params[:username], :class => "form-control", :placeholder => "Enter a username", :required => true %>
      </div>

      <div class="form-group">
        <label for="password">Enter a password</label>
        <%= password_field_tag :password, nil, :class => "form-control", :placeholder => "", :required => true %>
        <span>Password must be between 8 and 20 characters with no spaces</span>
      </div>

      <div class="form-group">
        <label for="password_confirmation">Confirm your password</label>
        <%= password_field_tag :password_confirmation, nil, :class => "form-control", :placeholder => "", :required => true %>
      </div>

      <p class="text-center">
        <%= submit_tag "Sign up", :disable_with => "Please wait...", :class => "btn btn-primary submit", :style => ''%>
      </p>

    </div>
    <input type="hidden" value="<%=@login_url%>" name="login_url" />
<% end %>
